Expand description
See Service
docs for information on this crate’s foundational trait.
Modules§
- Trait object forms of services and service factories.
Macros§
- An implementation of
poll_ready
that always signals readiness. - An implementation of
poll_ready
that forwards readiness checks to a named struct field.
Structs§
Traits§
- Trait for types that can be converted to a
Service
- Trait for types that can be converted to a
ServiceFactory
- An asynchronous operation from
Request
to aResponse
. - An extension trait for
Service
s that provides a variety of convenient adapters. - Factory for creating
Service
s. - An extension trait for
ServiceFactory
s that provides a variety of convenient adapters. - Defines the interface of a service factory that wraps inner service during construction.
- An extension trait for
Transform
s that provides a variety of convenient adapters.
Functions§
- Convert
Fn(Config, &Service1) -> Future<Service2>
fn to a service factory. - Convert
Fn(Config, &ServiceFactory1) -> Future<ServiceFactory2>
fn to a service factory. - Apply transform function to a service.
- Service factory that produces
apply_fn
service. - Create
ServiceFactory
for function that can produce services - Create
ServiceFactory
for function that accepts config argument and can produce services - Create
ServiceFactory
for function that can act as aService
- Convert object of type
U
to a serviceS
- Adapt external config argument to a config for provided service factory
- Replace config with unit.